Skip to content

Conversation

@cbentejac
Copy link
Contributor

@cbentejac cbentejac commented Aug 21, 2025

Description

This PR updates how the meshroom_compute executable is determined and invoked for each node, allowing for node-specific Python executables instead of using a global default. This provides greater flexibility for nodes that may require different Python environments: for example, in an environment that contains Houdini (which provides its own version of Python), one may want to call "hython" instead "python".

A pythonExecutable member, set by default to "python", is added to the Node class.

This is based on #2853, which adds the content of the bin folder to the packaged version of folder, thus removing the need to distinguish "release mode" from "regular mode".

@cbentejac cbentejac added this to the Meshroom 2026.1.0 milestone Aug 21, 2025
@cbentejac cbentejac self-assigned this Aug 21, 2025
@cbentejac cbentejac changed the title Dev/python executable [core] desc.node: Support the use of custom Python executables for meshroom_compute Aug 21, 2025
@codecov
Copy link

codecov bot commented Aug 21, 2025

Codecov Report

❌ Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.08%. Comparing base (c2f3115) to head (011cc0c).
⚠️ Report is 31 commits behind head on develop.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
meshroom/core/desc/node.py 33.33% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2849   +/-   ##
========================================
  Coverage    79.08%   79.08%           
========================================
  Files           51       51           
  Lines         6889     6889           
========================================
  Hits          5448     5448           
  Misses        1441     1441           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cbentejac cbentejac force-pushed the dev/pythonExecutable branch from df79133 to 926ce7b Compare August 22, 2025 16:25
@cbentejac cbentejac changed the base branch from develop to dev/improveSetup August 22, 2025 16:25
@cbentejac cbentejac changed the base branch from dev/improveSetup to develop August 25, 2025 09:12
@cbentejac cbentejac force-pushed the dev/pythonExecutable branch from 926ce7b to 57e9b8e Compare August 25, 2025 09:14
@cbentejac cbentejac force-pushed the dev/pythonExecutable branch from 57e9b8e to a356b8e Compare September 9, 2025 09:20
@cbentejac cbentejac marked this pull request as ready for review September 9, 2025 09:21
…ute`

If `pythonExecutable` has not been explicitly set in the node's
description, then the default `python` will be used. Otherwise, the
one set in the description will be used.

`_MESHROOM_COMPUTE_EXE` is removed since it is now impossible to
determine it outside of the node.
@cbentejac cbentejac added the feature new feature (proposed as PR or issue planned by dev) label Sep 17, 2025
@fabiencastan fabiencastan merged commit 55fc3a9 into develop Sep 19, 2025
4 of 5 checks passed
@fabiencastan fabiencastan deleted the dev/pythonExecutable branch September 19, 2025 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature new feature (proposed as PR or issue planned by dev)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants